<?php
 mysql_connect("localhost","root","13230358");
 mysql_select_db("todo001");
 mysql_query("set names utf8");
 $q=mysql_query("SELECT  * from task ");
 while($e=mysql_fetch_assoc($q))
 $output[]=$e;
 print(json_encode($output));
 mysql_close();
?>